import React from 'react';
class DemoComponent extends React.Component {
  setTitle() {
    console.log(this.props);
  }
  render() {
    return (
      <div>
        <p>demo1</p>
      </div>
    );
  }
}

export default DemoComponent;
